# 公共断言方法

def common_assert(self,response,status_code=200,success=True,code=10000,message='操作成功'):
    self.assertEqual(status_code, response.status_code)
    self.assertEqual(success, response.json().get('success'))
    self.assertEqual(code, response.json().get('code'))
    self.assertIn(message, response.json().get('message'))